<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <TITLE>ThinkPHP示例：URL伪静态</TITLE>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/Css/common.css'>
 </HEAD>
 <BODY>
 <div class="main">
 <H2>ThinkPHP示例之：URL伪静态</H2>
  可以轻而易举地通过配置来实现URL伪静态<BR>
 <TABLE  cellpadding=3 cellspacing=3>
  <TR>
	<TD ><div class="result">当前URL：<BR>{$Think.server.PHP_SELF} <BR>实际操作 <span style="color:red">{$Think.const.MODULE_NAME}</span>模块 的<span style="color:red">{$Think.const.ACTION_NAME}</span> 操作</div></TD>
 </TR>
 <TR>
	<TD class="tLeft" >正常URL：<A HREF="__URL__/read/id/5">/Index/read/id/5</A><BR>
	伪静态URL：<A HREF="__URL__/read/id/5.shtml">/Index/read/id/5.shtml</A>
	</TD>
 </TR>
 <TR>
	<TD ><HR> 示例源码<BR>配置文件config.php<BR> <php>highlight_file(CONFIG_PATH.'config.php');</php><BR>
	控制器IndexAction类<BR><php>highlight_file(LIB_PATH.'Action/IndexAction.class.php');</php><BR>
	</TD>
 </TR>
 </TABLE>
</div>
 </BODY>
</HTML>
